public class Test {
    public static void main(String[] args) {
        MyArrayList list = new MyArrayList();
        list.display();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(5);
        list.display();
        //System.out.println(list.contains(6));
        //System.out.println(list.indexOf(6));
        //System.out.println(list.get(3));

        //list.add(4,12);
        //list.set(3,23);
        //list.remove(1);
        list.display();
        list.clear();
        list.display();
    }
}
